home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / Dev / Oberon / source / amiga / Misc.mod < prev    next >
Text File  |  1995-06-29  |  2KB  |  76 lines

  1. (**************************************************************************
  2.  
  3.      $RCSfile: Misc.mod $
  4.   Description: Interface to misc.resource
  5.  
  6.    Created by: fjc (Frank Copeland)
  7.     $Revision: 3.8 $
  8.       $Author: fjc $
  9.         $Date: 1995/06/04 23:13:14 $
  10.  
  11.   Includes Release 40.15
  12.  
  13.   (C) Copyright 1985-1993 Commodore-Amiga, Inc.
  14.       All Rights Reserved
  15.  
  16.   Oberon-A interface Copyright © 1994-1995, Frank Copeland.
  17.   This file is part of the Oberon-A Interface.
  18.   See Oberon-A.doc for conditions of use and distribution.
  19.  
  20. ***************************************************************************)
  21.  
  22. <* STANDARD- *>
  23.  
  24. MODULE [2] Misc;
  25.  
  26. IMPORT e := Exec;
  27.  
  28.  
  29. (*
  30. **      $VER: misc.h 36.13 (6.5.90)
  31. **
  32. **      Unit number definitions for "misc.resource"
  33. *)
  34.  
  35. CONST
  36.  
  37. (*
  38.  * Unit number definitions.  Ownership of a resource grants low-level
  39.  * bit access to the hardware registers.  You are still obligated to follow
  40.  * the rules for shared access of the interrupt system (see
  41.  * exec.library/SetIntVector or cia.resource as appropriate).
  42.  *)
  43.   serialPort   * = 0; (* Amiga custom chip serial port registers
  44.                          (SERDAT,SERDATR,SERPER,ADKCON, and interrupts) *)
  45.   serialBits   * = 1; (* Serial control bits (DTR,CTS, etc.) *)
  46.   parallelPort * = 2; (* The 8 bit parallel data port
  47.                          (CIAAPRA & CIAADDRA only!) *)
  48.   parallelBits * = 3; (* All other parallel bits & interrupts
  49.                          (BUSY,ACK,etc.) *)
  50.  
  51.   miscName * = "misc.resource";
  52.  
  53.  
  54. (*-- Resource Base variable --------------------------------------------*)
  55.  
  56. VAR
  57.  
  58.   base * : e.APTR;
  59.  
  60.  
  61. (*-- Resource Functions ------------------------------------------------*)
  62.  
  63. (*
  64. **      $VER: misc_protos.h 36.2 (7.11.90)
  65. *)
  66.  
  67. PROCEDURE AllocMiscResource* [base,-6]
  68.   ( unitNum [0] : e.ULONG;
  69.     name    [9] : ARRAY OF CHAR )
  70.   : e.APTR;
  71. PROCEDURE FreeMiscResource* [base,-12]
  72.   ( unitNum [0] : e.ULONG );
  73.  
  74. BEGIN base := NIL
  75. END Misc.
  76.